package com.ibix.gui.component;


import com.ibix.gui.adapter.MainFrameAdapter;

import javax.swing.*;

/**
 * Created by Administrator on 2018/2/1.
 */
public class MainFrame extends JFrame {
    public MainFrame(String title,int width,int height){
        setTitle(title);
        setSize(width,height);
        setLocationRelativeTo(null);
        setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
        setResizable(true);
        addWindowListener(new MainFrameAdapter());
    }
}
